﻿@{
    ViewBag.Title = "Login Page";
    var error = ViewData["error"] ?? "";
}
<div id="logging">
    @using (Html.BeginForm("LogIn", "Home", FormMethod.Post))
    {
        <div id="log">
            <input type="text" id="logbox" name="username" title="Username" />
            <p>Username:</p>
        </div>
        <div id="pass">
            <input type="password" id="logbox" name="password" title="Password" value=" " />
            <p>Password:</p>                
        </div>
        <input type="submit" id="loginBtn" value="log in" title="Log in" />
        <div id="errorText">@error</div>
    }
</div>
